<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group form-handle">
        <label class="control-label col-xs-12 col-sm-3">{:__('流水号')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="instancecode"  class="form-control" name="row[instancecode]" type="text" value="{$serial_no}" readonly>
        </div>
    </div>
    {if $fieldList.partner_id.read==1}
    <div class="form-group form-handle">
        <label class="control-label col-xs-12 col-sm-3">{:__('协议名称')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.partner_id.write==0}disablefield{/if}">
            <input id="c-partner_id" data-source="flow/cooperation/index" data-field="cname" class="form-control selectpage" name="row[partner_id]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.year.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Year')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.year.write==0}disablefield{/if}">
            <input id="c-year" class="form-control datetimepicker" data-date-format="YYYY" data-use-current="true" name="row[year]" type="text" value="{:date('Y')}">
        </div>
    </div>
    {/if}
    {if $fieldList.scansion.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('协议扫描件')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.scansion.write==0}disablefield{/if}">
            <div class="input-group">
                <input id="c-scansion" data-rule="required" class="form-control" size="50" name="row[scansion]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-scansion" class="btn btn-danger plupload" data-input-id="c-scansion" data-multiple="false" data-preview-id="p-scansion"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-scansion" class="btn btn-primary fachoose" data-input-id="c-scansion" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-scansion"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-scansion"></ul>
        </div>
    </div>
    {/if}
<!--    {if $fieldList.examinefile.read==1}-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Examinefile')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8 {if $fieldList.examinefile.write==0}disablefield{/if}">-->
<!--            <div class="input-group">-->
<!--                <input id="c-examinefile" data-rule="required" class="form-control" size="50" name="row[examinefile]" type="text" value="">-->
<!--                <div class="input-group-addon no-border no-padding">-->
<!--                    <span><button type="button" id="plupload-examinefile" class="btn btn-danger plupload" data-input-id="c-examinefile" data-multiple="false" data-preview-id="p-examinefile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>-->
<!--                    <span><button type="button" id="fachoose-examinefile" class="btn btn-primary fachoose" data-input-id="c-examinefile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
<!--                </div>-->
<!--                <span class="msg-box n-right" for="c-examinefile"></span>-->
<!--            </div>-->
<!--            <ul class="row list-inline plupload-preview" id="p-examinefile"></ul>-->
<!--        </div>-->
<!--    </div>-->
<!--    {/if}-->
<!--    {if $fieldList.examineStatus.read==1}-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Examinestatus')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8 {if $fieldList.examineStatus.write==0}disablefield{/if}">-->
<!--            -->
<!--            <div class="radio">-->
<!--            {foreach name="examinestatusList" item="vo"}-->
<!--            <label for="row[examineStatus]-{$key}"><input id="row[examineStatus]-{$key}" name="row[examineStatus]" type="radio" value="{$key}" {in name="key" value="2"}checked{/in} /> {$vo}</label> -->
<!--            {/foreach}-->
<!--            </div>-->

<!--        </div>-->
<!--    </div>-->
<!--    {/if}-->
<!--    {if $fieldList.opinion.read==1}-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Opinion')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8 {if $fieldList.opinion.write==0}disablefield{/if}">-->
<!--            <textarea id="c-opinion" data-rule="required" class="form-control " rows="5" name="row[opinion]" cols="50"></textarea>-->
<!--        </div>-->
<!--    </div>-->
<!--    {/if}-->
    {if $fieldList.previous_year.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('往年合作事项执行落实情况')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.previous_year.write==0}disablefield{/if}">
            <textarea id="c-previous_year" class="form-control" rows="15" name="row[previous_year]" cols="50"></textarea>
        </div>
    </div>
    {/if}
    {if $fieldList.that_year.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('That_year')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.that_year.write==0}disablefield{/if}">
            <textarea id="c-that_year" class="form-control" rows="15" name="row[that_year]" cols="50"></textarea>
        </div>
    </div>
    {/if}
    {if $fieldList.next_step.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Next_step')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.next_step.write==0}disablefield{/if}">
            <textarea id="c-next_step" class="form-control" rows="15" name="row[next_step]" cols="50"></textarea>
        </div>
    </div>
    {/if}
    {if $fieldList.other.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Other')}:</label>
        <div class="col-xs-12 col-sm-7 {if $fieldList.other.write==0}disablefield{/if}">
            <textarea id="c-other" class="form-control" rows="15" name="row[other]" cols="50"></textarea>
        </div>
    </div>
    {/if}
    <div class="form-group layer-footer">
        <div class="col-xs-12 col-sm-12" style="text-align: center;">
<!--            <button id='save' type="button" class="btn btn-success btn-embossed">保存</button>-->
            <button id='add' type="submit" class="btn btn-info btn-embossed">提交</button>
            <button type="button" id='flowchart' class="btn btn-warning btn-embossed">{:__('流程图')}</button>
        </div>
    </div>
</form>
